#include "iostream"
#include "parase_args.h"

using namespace std;

int main(int argc, char* argv[]){


     cmdline::ParaseArg args;
     std::set<std::string> ports;
     ports.insert("900");
     ports.insert("80");
     auto func = [](string arg){std::cout<<arg<<endl;};
     args.Add("-p", func, cmdline::MUST_VALUE, ports);


     std::set<std::string> content;
     args.Add("-t",
	      [](string arg){
		   cout<<"run the function\t"<<"the arg:"<<arg<<endl;
	      },
	      cmdline::MAY_VALUE, content);
     args.Parase(argc, argv);
     
     return 0;
}
